/* Custom styles for gallery */
body {
  background: linear-gradient(135deg, #e0f7fa, #fce4ec, lightblue);
  color: #343a40;
}

.gallery-container {
  padding: 30px 0;
}


.gallery-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
  animation: fadeIn 1.5s ease-in-out;
}

/* Define color animations for gallery items */
.gallery-item {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: background-color 0.5s ease, transform 0.3s ease;
  animation: animated-entry 1s ease-in-out;
  animation-delay: var(--animation-delay, 0s); /* Controls the delay for each gallery item */
}

/* Adding colors and scaling effect on hover */
.gallery-item:hover {
  background-color: #ffd54f;
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Image styling and scale on hover */
.gallery-item img {
  width: auto;
  height: 100%;
  transition: transform 0.5s ease;
  border-radius: 5px;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Fade-in animation for title */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Custom animation for gallery item entry */
@keyframes animated-entry {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
